package io.github.yangyouwang.module.mm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.yangyouwang.module.mm.entity.FutureSymbolCurrentPrice;

/**
 * <p>
 * 期货某一时刻价格表 Mapper 接口
 * </p>
 *
 * @author yanchengwu
 * @since 2023-08-23
 */
public interface FutureSymbolCurrentPriceMapper extends BaseMapper<FutureSymbolCurrentPrice> {

    /**
     * 获取某个品种限定时间之前的最大时间的数据
     *
     * @param symbol
     * @param currentDatetime
     * @return
     */
    FutureSymbolCurrentPrice getByLimitDatetime(String symbol, String currentDatetime);
}
